vt-d: Support intra-domain shared interrupt.
authorKeir Fraser <keir@xensource.com>
Wed, 7 Nov 2007 15:20:06 +0000 (15:20 +0000)
committerKeir Fraser <keir@xensource.com>
Wed, 7 Nov 2007 15:20:06 +0000 (15:20 +0000)
commit111b6ba18bd91cfc6160ce938a87af636d69799a
treec6ad22758e8595da6bce8300df776c228cb7e886
parent30efc7f5f073a8a6126d9d162b07080f6ebb1242
vt-d: Support intra-domain shared interrupt.

Inter-domain shared interrupt has been supported by timeout method,
but it still doesn't support intra-domain shared interrupt, that is
assigning multiple devices which share a physical irq to the same
domain. This patch implements intra-domain shared interrupt
support. In addition, this patch maps link to guest device/intx
instead of directly mapping isairq in pt_irq_create_bind_vtd(),
because at this point the isairqs got from pci_link are always 0.

Note that assigning multiple devices to guests which uses PIC to
handle interrupts may be failed, because different links possibly
connect to same irq.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/arch/x86/hvm/irq.c
xen/arch/x86/hvm/vmx/intr.c
xen/arch/x86/hvm/vmx/vtd/io.c
xen/include/asm-x86/hvm/irq.h